package com.king.framework.base.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.king.common.annotation.MetaData;

/**
 * 审批实体公用类
 * @author lenovo
 *
 */
public class AuditEntity extends YyBaseEntity{
	
	@MetaData(value = "标题")
	public String title;
	
	@MetaData(value = "单据号")
	public String bcode;

	@MetaData(value = "单据类型", enumtype = "BillType")
	public String btype;
	
	@MetaData(value = "流程类型")
	public String flowcode;

	@MetaData(value = "单据日期")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
	public Date bdate;
	
	@MetaData(value = "审批状态，1：未提交，2：被退回，3：已提交，4：审批中，5：通过", enumtype = "bss")
	@JsonSerialize(using= ToStringSerializer.class)
	public Integer bss;

	@MetaData(value = "提交人id(系统默认)")
	public String sr;

	@MetaData(value = "提交时间(系统默认)")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	public Date sts;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBcode() {
		return bcode;
	}

	public void setBcode(String bcode) {
		this.bcode = bcode;
	}

	public String getBtype() {
		return btype;
	}

	public void setBtype(String btype) {
		this.btype = btype;
	}

	public String getFlowcode() {
		return flowcode;
	}

	public void setFlowcode(String flowcode) {
		this.flowcode = flowcode;
	}

	public Date getBdate() {
		return bdate;
	}

	public void setBdate(Date bdate) {
		this.bdate = bdate;
	}

	public Integer getBss() {
		return bss;
	}

	public void setBss(Integer bss) {
		this.bss = bss;
	}

	public String getSr() {
		return sr;
	}

	public void setSr(String sr) {
		this.sr = sr;
	}

	public Date getSts() {
		return sts;
	}

	public void setSts(Date sts) {
		this.sts = sts;
	}

}
